

class Calculator:
    n = 0

    @classmethod
    def add(cls,num):
        cls.n  += num

    @classmethod
    def sub(cls,num):
        cls.n -= num

Calculator.add(10)
print(f"n={Calculator.n}")

Calculator.sub(5)
print(f"n={Calculator.n}")